home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 522 / okami12 / doc / help < prev    next >
Encoding:
Text File  |  1991-04-17  |  7.2 KB  |  196 lines

  1. Internal Commands:
  2.  
  3. DISPLAYING AND MANIPULATING DATA
  4.  cat [-b] {file}        copy file(s) to StdOut
  5.  crypt [key]            encrypt or decrypt StdIn to StdOut
  6.  echo {string}            write strings to StdOut
  7.  fgrep [-cfl] pattern {file}    find pattern, fixed string only
  8.  grep [-cfsl] pattern {file}    find pattern, allows extended wildcards
  9.  hd {file}            Hex dump
  10.  more [file]            same as pg
  11.  pg [file]            show file in pages
  12.  raw [-bnc] {file}        put file(s) on raw console
  13.  tee file            copy StdIn to StdOut and to file
  14.  tr fltrfile            filter StdIn to StdOut according to fltrfile
  15.  wc [-lwcn] {file}        count lines, words, and characters
  16.  what [-s] {file}        identify files by @(#)
  17.  
  18. MAINTAINING FILES AND DIRECTORIES 
  19.  chmod (+|-)[cdhrsv] file    change file attributes
  20.  cp source dest         copy files
  21.  ls [-adlkCvxtnbr] {filespec}    list files
  22.  mkdir [-r] dir {dir}        make a new directory
  23.  mv source dest         move a file (rename)
  24.  rm [-fi] file {file}        remove a file
  25.  rmdir path {path}        remove a directory
  26.  touch file {file}        update date-time-stamp
  27.  
  28. SHELL PROGRAMMING
  29.  . file             execute a file as a shell script
  30.  [ expr ]            same as test
  31.  exec [-lbxg] file {Parameter}    execute a file as a binary program
  32.  exit                finish a script
  33.  false                returns 0
  34.  fsel [filespec [name [var]]]    (*) select a file with the fileselect box
  35.  if, then, else, fi        see below
  36.  indir String            send String once more through the evaluator
  37.  read [[-] variable]        read a variable from StdIn
  38.  sleep [-s] Time        wait for a while
  39.  test [expr]            evaluate a logical expression
  40.  true                returns 1
  41.  while, do, break, done     see below
  42.  xargs [Command {Parameter}]    perform with lines from StdIn, replace {}
  43.  
  44. SHELL AND SYSTEM MANAGEMENT AND CONFIGURATION
  45.  cursor [(+|-)bv] [rate]    configure VT52 cursor
  46.  date [+DateFmt]        show time and date
  47.  df [-dnmb] {drive}        disk space info
  48.  drive drive{drive} [name]    get/set drive names
  49.  exit                finish the shell
  50.  export [[-] {Variable}]    mark or unmark for envir. (wildcards allowed)
  51.  goff                exit from AES application
  52.  gon [-q]            init as AES application or query
  53.  keyb [-] | ([(+|-)abc] [-ir])    konfigure the keyboard
  54.  keydef [+nsca] key [text|-]    redefine the keyboard
  55.  mouse [+|-] [form] [Var [Var [Var]]]    (*) configure the mouse pointer
  56.  readonly [[-] {variable]}    make variables readonly
  57.  rdti [-dclxv] [filename]    configure shell from desktop.inf
  58.  rsconf [-spbw] [(+|-)xr]    configure the serial interface (RS232)
  59.  scr [-bwhl]            set backgr.col and (*) # of lines (hires only)
  60.  shutdown [-rRfv]        shut down the system
  61.  trap [-|[+]Command {Parameter}] set a command to execute on shell exit
  62.  
  63. SHELL AND SYSTEM MONITORING
  64.  adr                show some system adresses
  65.  basep [-ap] [adress]        find or analyse a basepage
  66.  cmds [-Ca] {pattern}        list internal commands (wildcards allowed)
  67.  cookie [-xdn0sc] {cookie}    read out the cookie jar (wildcards allowed)
  68.  errcode {Number|errno}        explain an error number
  69.  fcts                list Shell functions
  70.  history [-l]            load or save the history list
  71.  mem [-b]            show free or total RAM
  72.  memex [-acwls] Adress [Number] examine memory
  73.  pmd                produce a post mortem dump
  74.  set [-|(+|-)blxschu]        show/set Shell flags
  75.  time Command {Parameter}    command run time
  76.  type [-f] command {command}    show calling path of command
  77.  vars [-axs]            list Shell variables
  78.  ver [-oclgtdmMa]        show shell & OS version numbers
  79.  
  80. UTILITIES
  81.  backup [-nNrq] [path]        save files to disk
  82.  find path filespec        list matching files
  83.  getscr [-[header] filename]    get screen bit image (cf. putscr)
  84.  putscr [-(f|s filename)]    show/save a screen bit image (cf. getscr)
  85.  rpn [Fmt] rpn-expr        RPN calculator
  86.  sort [-lnrs]            sort StdIn to StdOut
  87.  upn [Fmt] rpn-expr        same as rpn
  88.  virus [-xvsi] {drive}        find & extinguish bootsector viruses
  89.  
  90. MISCELLANIOUS
  91.  basename file [extender]    find filename (a:\okami\sh.ttp -> sh.ttp)
  92.  bombs n            terminate with n bombs (n>=2)
  93.  cd [path]            change work directory
  94.  cls                clear the screen
  95.  dirname file            find path (a:\okami\sh.ttp -> a:\okami\)
  96.  drvname file            find drive (a:\okami\sh.ttp -> a:)
  97.  extname file            find extender (okami\sh.ttp -> .ttp)
  98.  fullname file            find absolute filename
  99.  hardcopy            print contents of screen
  100.  help                this
  101.  pwd [-a|{Drive}]        print work directory
  102.  
  103.  
  104.  (*) command can only be used after gon has been called.
  105.  
  106.  drive:     e.g.    d:
  107.  path:        e.g.    d:\okami
  108.  file:        e.g.    d:\okami\sh.ttp
  109.  filespec:    e.g.    d:\okami\*.sh        or file
  110.  source,dest:    file
  111.  fltrfile:    file
  112.  pattern:    any string
  113.  Number:    eg. 123 (dec), 0xabc (hex), 0123 (oct), %110 (bin), !A (char)
  114.  Adress:    Number
  115.  Time:        Number
  116.  rate:        0:still, 30:normal, <30:faster, >30:slower
  117.  expr:        a logical expression, see "test" in commands.doc
  118.  rpn-expr:    an RPN expression
  119.  Fmt:        a printf format string
  120.  DateFmt:    special printf-like format, see "date" in commands.doc
  121.  form:        0 arrow, 1 hourglass, 2 bee, 3 pointing hand, 4 flat hand,
  122.         5 thin crosshair, 6 thick crosshair, 7 outlined crosshair
  123.  
  124.  
  125.  Commands with optional file (eg. hd [file]) take StdIn if no file is given.
  126.  
  127.  
  128.  Extended Wildcards:
  129.  *    matches anything
  130.  ?    matches one character
  131.  [xyz]    matches x, y, or z
  132.  [x-z]    matches x, ..., z
  133.  [~xy]    matches any character except x and y
  134.  
  135.  Conditional execution:
  136.  if command        Executes commands1 if command returns a non-zero
  137.  then            exit value and commands2 if command returns a
  138.    commands1        zero exit value. "else command2" may be ommitted.
  139.  else            command can be "test expr" or "[ expr ]" (see
  140.    commands2        "test"). The "then" line may be ommitted.
  141.  fi            This works with shell scripts and in interactive
  142.             mode.
  143.  
  144.  Looping:
  145.  while command        Executes commands2 until command returns a zero
  146.  do            exit value. break may be used within an if-fi-
  147.    commands2        construct and quits the loop immediately.
  148.    <may include:>    continue may be used within an if-fi-contruct and
  149.    break <or>        starts a new loop immediately.
  150.    continue        The "do" line may be ommitted.
  151.  endwhile        This works with shell scripts (and functions) only.
  152.  
  153.  Function deklaration:
  154.  functionname(filename) generates "functionname" from file
  155.  (filename)        generates `basename filename` from file
  156.  functioname()        generates "functionname" with the given
  157.  {            commands
  158.    commands...
  159.  }
  160.  functionname()     removes the named function
  161.  {}
  162.  
  163.  I/O redirection:
  164.  <            redirect StdIn    (all commands)
  165.  >            redirect StdOut, create (all commands)
  166.  >>            redirect StdOut, append (all commands)
  167.  n>            redirect File-Descr. n, create (n=2: StdErr)
  168.  n>>            redirect File-Descr. n, append (n=2: StdErr)
  169.  |            pipe
  170.  `...`            command substitution
  171.  
  172.  Devices:
  173.  A:            Disk Drive A:
  174.  B:            Disk Drive B: etc.
  175.  CON:            Console (screen and keyboard)
  176.  PRT:            Printer (parallel port)
  177.  AUX:            RS232 (serial Port [Modem])
  178.  NULL:            nowhere (set $NULL to specify)
  179.  
  180.  Keyboard command entry:
  181.  Backspace        erase last character
  182.  Up-Arrow        display previous in history (*)
  183.  Dn-Arrow        display next in history (*)
  184.  Lt-Arrow        filename-expand last word  
  185.  Rt-Arrow        restore from previous input
  186.  Insert         save position for restore
  187.  Clr Home        erase line
  188.  Help            explain current command using $HELPFILE
  189.  Ctrl Shift Undo    deactivate keydefs (valid until ENTER)
  190.  Control F        select a file via fileselect box (**)
  191.  Control P        execute the shell function "screensave"
  192.  Control V        abort the shell
  193.  
  194.  (*) with Ctrl: execute, with Shift: last match
  195.  (**) needs gon
  196.